<li class="<?= $hasChildren ? ' has-flyout' : '' ?><?= $isActive ? ' active"' : '' ?>">
  <a href="<?php echo url( $url ) ?>"><?php echo html( $label ) ?></a>
  <?php if( $hasChildren ): ?>
  <a href="#" class="flyout-toggle"><span> </span></a>
  <ul class="flyout">
    <?php foreach( $children as $child ): ?>
    <?= partial( 'liriope', 'menuitem', array(
      'hasChildren'=>$child->hasChildren(),
      'isActive'=>$child->isActive(),
      'url'=>$m->getURL(),
      'label'=>$m->getLabel(),
      'children'=>$child->getChildren( $depth )
    )) ?>
    <?php endforeach ?>
  </ul>
  <?php endif ?>
</li>
